package dk.aiszone.lang.sql;

import dk.aiszone.lang.sql.interfaces.SQLConstraint;

/**
 * Representation of the <i>and</i> operator in SQL.
 * 
 * @author Ais
 */
/* pp */class SQLAnd extends SQLList {

    /**
     * Constructor for the <code>SQLAnd</code> object.
     * 
     * @param constraint1
     *            The first constraint contained within the <code>SQLAnd</code>.
     */
    public SQLAnd(SQLConstraint constraint1) {
        super(constraint1);
    }

    /**
     * COnstructor for the <code>SQLList</code> object
     * 
     * @param list
     *            <code>SQLList</code> to add.
     */
    public SQLAnd(SQLList list) {
        super(list);
    }

    @Override
    protected String getSeperator() {
        return " AND ";
    }
}